<template>
  <div>
    <van-cell
      :title="record.name"
      :value="`¥${record.list_price}`"
      :to="url_for_form"
      is-link
    />
  </div>
</template>

<script>
export default {
  name: 'Product_product_action_sellable',
  components: {},
  mixins: [],

  props: {
    viewInfo: {
      type: Object,
      default: () => {
        return {}
      }
    },

    dataInfo: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },

  data() {
    return {}
  },

  computed: {
    record() {
      return this.dataInfo.record || {}
    },
    url_for_form() {
      const { action } = this.viewInfo
      const { id: res_id } = this.record
      return {
        path: '/web',
        query: { action: action.id, id: res_id, view_type: 'form' }
      }
    }
  },

  created() {
    console.log(this.record)
  },

  methods: {}
}
</script>

<style scoped></style>
